/***
 * Brian Hession -- February 22, 2013
 *
 * Keyboard
 *
 * Date 			Changes
 * 2/22/2013		Initial version
 *
 */

#include "keymap.h"

Keymap::Keymap() {
	left = SDLK_LEFT;
	right = SDLK_RIGHT;
	up = SDLK_UP;
	down = SDLK_DOWN;
	jump = SDLK_SPACE;
	actionA = SDLK_LCTRL;
	actionB = SDLK_RCTRL;
}

void Keymap::setRight( int key ) {
	right = key;
}

void Keymap::setLeft( int key ) {
	left = key;
}

void Keymap::setUp( int key ) {
	up = key;
}

void Keymap::setDown( int key ) {
	down = key;
}

void Keymap::setJump( int key ) {
	jump = key;
}

void Keymap::setActionA( int key ) {
	actionA = key;
}

void Keymap::setActionB( int key ) {
	actionB = key;
}

int Keymap::getLeft() {
	return left;
}

int Keymap::getRight() {
	return right;
}

int Keymap::getUp() {
	return up;
}

int Keymap::getDown() {
	return down;
}

int Keymap::getJump() {
	return jump;
}

int Keymap::getActionA() {
	return actionA;
}

int Keymap::getActionB() {
	return actionB;
}

